# coding:utf-8

"""
CopyRight(c)  2017-09-15  Fraplus Corp

Author: Weilin Shen, Xiaodong.yang
Email:  xiaodong.yang@unidt.com
Functions:

we chat server

dependence package:

fralog
handler

"""
import sys

import pymongo
from rq import Connection, Worker
from redis import Redis

import json
import requests


if __name__ == '__main__':
    if __name__ == '__main__':
        client = pymongo.MongoClient(host='127.0.0.1', port=27017, username='mongouser2', password='huayuan@888',
                                     socketKeepAlive=True)  # 连接数据库
        db = client['test']

        rows = db.responses_collection.find()
        for row in rows:
            print(row)
    pass
# q_name = 'wechat'
# if __name__ == '__main__':
#     conn = Redis(host = '127.0.0.1', port = 6379)
#     with Connection(connection=conn):
#         w = Worker(q_name)
#         w.work()
